import request from '@/utils/request'

// 查询课程关联学生列表
export function listCourse_student(query) {
  return request({
    url: '/teach/course_student/list',
    method: 'get',
    params: query
  })
}

// 查询课程关联学生详细
export function getCourse_student(stId) {
  return request({
    url: '/teach/course_student/' + stId,
    method: 'get'
  })
}

// 新增课程关联学生
export function addCourse_student(data) {
  return request({
    url: '/teach/course_student',
    method: 'post',
    data: data
  })
}

// 修改课程关联学生
export function updateCourse_student(data) {
  return request({
    url: '/teach/course_student',
    method: 'put',
    data: data
  })
}

// 删除课程关联学生
export function delCourse_student(stId) {
  return request({
    url: '/teach/course_student/' + stId,
    method: 'delete'
  })
}
